package com.jiecao.news.jiecaonews;

import cn.jpush.android.api.InstrumentedActivity;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
 * @author lidongwei
 *
 */
public class BaseActivity extends InstrumentedActivity {
	public static final String finish_br_name = "finish_br_name";
	@Override
	protected void onDestroy() {
		super.onDestroy();
		unregisterReceiver(finishbr);
	}
	
	protected final BroadcastReceiver finishbr = new BroadcastReceiver(){

		@Override
		public void onReceive(Context context, Intent intent) {
			finish();
		}
		
	};
//	@Override
//	public void onBackPressed() {
//		Intent i = new Intent(finish_br_name);
//		sendBroadcast(i);
//		return;
//	}

}
